//
//  JHAboutAblumViewController.m
//  Liberty Voice
//
//  Created by dlios on 15-5-14.
//  Copyright (c) 2015年 ClearLove. All rights reserved.
//

#import "JHAboutAblumViewController.h"
#import "JHAboutAblumTableViewCell.h"
#import "JHAblumViewController.h"

@interface JHAboutAblumViewController ()<UITableViewDataSource,UITableViewDelegate>
@property(nonatomic,retain)UITableView *aboutTableView;
@end

@implementation JHAboutAblumViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createAblum];
}
- (void)createAblum
{
    self.aboutTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
    _aboutTableView.delegate = self;
    _aboutTableView.dataSource = self;
    [_aboutTableView registerClass:[JHAboutAblumTableViewCell class] forCellReuseIdentifier:@"ablum"];
    [self.view addSubview:_aboutTableView];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 30;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    JHAboutAblumTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ablum"];
    //    cell.textLabel.text = @"FFF";
    return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 63;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:NO];
    JHAblumViewController *ablum = [[JHAblumViewController alloc] init];
    [self presentViewController:ablum animated:YES completion:^{
        NSLog(@"模态成功");
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
